<!DOCTYPE html>
<html>
<head>
	<title>系统参数管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <script type="text/javascript">
	    var path = window.document.location.href;
		var pathName = window.document.location.pathname;
		var hostPath = path.substring(0, path.indexOf(pathName));
		var projectName = pathName.substring(0, pathName.substr(1).indexOf("/") + 1);
		document.write('<scr' + 'ipt src="' + projectName + '/js/html/header.js"></scr'+'ipt>');
    </script>
</head>
<body>
	<table id="dg" style="width:auto;height:auto">
		<thead>
			<tr>
				<th field="id" data-options="hidden:true">ID</th>
				<th field="name" 	width="60" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">参数名称</th>
				<th field="type" 	width="30" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">参数类型</th>
				<th field="subtype" width="30" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">参数子类型</th>
				<th field="value" 	width="120" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">参数值</th>
				<th field="remark" 	width="80" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}">备注</th>
				<th field="status" 	width="40" align="right"
					data-options="
					sortable:true,
					remoteSort:false,
					editor:{
						type:'validatebox',
						options:{
							required:true
						}
					}"
					>状态</th>
			</tr>
		</thead>
	</table>
	<div id="dg-buttons" style="height:auto">
		<div style="margin-bottom:5px">
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" 	onclick="dgop.add()">新增</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" 	onclick="dgop.remove()">删除</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" 	onclick="dgop.edit()">修改</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-redo',plain:true" 	onclick="dgop.copy()">复制</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-undo',plain:true" 	onclick="dgop.reject()">撤销</a>
			<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" 	onclick="dgop.save()">保存</a>
		</div>
		<div>
			<span>参数名称:</span>
			<input type="text" id="name" name="name" class="easyui-validatebox" />
			<span>参数值:</span>
			<input type="text" id="value" name="value" class="easyui-validatebox" />
			<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" onclick="dgop.find()">查询</a>
		</div>
	</div>

	<script>
		var initd = {
			queryDataURL:"/system/param/query",//查询URL
			saveDataURL:"/system/param/save/overall",//保存URL
			dg:$('#dg'),
			dataDicList:{'1':['status']}//需加载的 DATADIC 字典名+作用的字段名
		};

	</script>
</body>
</html>

